<script type="text/javascript">
<!--
function handleAjax(url,statuShowArea){
	$(statuShowArea).attr('src','/i/admin/index_loading.gif');
	ajax(url,'',function(){
		$(statuShowArea).attr('src','/i/admin/index_loaded.gif');
	},function(){
		$(statuShowArea).attr('src','/i/admin/index_loadfail.gif');
	});
}

clearsmarty = function(){
	handleAjax('/opera/clearsmarty','#clearsmartystatus');
}
$(function(){
	$('input.opera').click(function(){
		if (confirm('确定'+this.value+'?'))
			if (typeof window[this.id] == 'function')
				eval(this.id+'()');
			else
				alert('函数未定义');
	});
})
//-->
</script>
<h2>站点操作</h2>

<div id="main">
	<form action="" class="jNice">
		<h3>Another section</h3>
    	<fieldset>
        	<p>
        	<label>清空smarty缓存</label>
        	<input id="clearsmarty" type="button" value="清空smarty缓存" class="opera" />
        	<img id="clearsmartystatus" /></p>
            
        </fieldset>
    </form>
</div>
<!-- // #main -->